IHipFont.calculateTextBounds

interface IHipFont
const
void
calculateTextBounds
(
in dstring text
,
ref uint[] linesWidths
,
out int biggestWidth
,
out int height
,
int maxWidth = -1
)

Parameters

text dstring

The text

linesWidths uint[]

Save width per line

biggestWidth int

The biggest width in lines

height int

Height of all the lines together

maxWidth int

If maxWidth != -1, it will break the text into lines automatically.

Meta